package top.codedance.iotp.converter.service.master;

import top.codedance.iotp.converter.bean.MasterConnectParam;

public abstract class AdapterSerialMaster extends AbstractMaster {
    public AdapterSerialMaster(MasterConnectParam mcp) {
        super(mcp);
    }

    @Override
    public abstract void init();

    @Override
    public abstract void connect();

    @Override
    public abstract boolean isOpen();

    @Override
    public abstract void destory();

    @Override
    public abstract void recover(byte[] data);

    @Override
    public int readHoldingRegister(int offset) {
        return 0;
    }

    @Override
    public int[] readHoldingRegisterRange(int offset, int quantity) {
        return new int[0];
    }

    @Override
    public void writeHoldingRegister(int offset, int value) {

    }

    @Override
    public void writeHoldingRegisterRange(int offset, int[] range) {

    }

    @Override
    public boolean[] readCoilRange(int offset, int quantity) {
        return new boolean[0];
    }

    @Override
    public void writeCoil(int offset, boolean value) {

    }

    @Override
    public void writeCoilRange(int offset, boolean[] range) {

    }

    @Override
    public byte[] request(int offset, int quantity) {
        return new byte[0];
    }
}
